#include "ALEstd.h"
#include "d3d9util.h"

class DXRenderer
{
public:
	DXRenderer();
	~DXRenderer();

	bool Init(HWND hWnd ,int screenWidth, int screenHeight, int colorDepth, bool fullscreen);

	IDirect3DDevice9* const GetDevice() const { return m_pDevice; }
	ID3DXSprite* const GetSpriteHandler() const { return m_pSpriteHandler; }
	HWND GetWindow() const { return m_hWnd; }
	void TestRender();

private:
	IDirect3D9* m_pD3D;
	IDirect3DDevice9* m_pDevice;
	IDirect3DSurface9 *m_pBackbuffer;
	ID3DXSprite *m_pSpriteHandler;
	D3DPRESENT_PARAMETERS m_d3dpp;
	HWND m_hWnd;
};

extern DXRenderer *g_pRenderer;